<div class="menu-bar clearfix">
<div class="searchbar clearfix" style="display: none;height:0px ">
<div class="searchbar_wrapper">
<div class="header_searchbar">
<div class="search_wrapper">
<form action="#">
<input onsubmit='seach() return false' class="sitebar_search_header search sprite" type="text"  name="s" tabindex="1" autocomplete="off" flag="1" style="color: rgb(204, 204, 204); ">
</form>
</div>
</div></div></div>
<div class="content-block clearfix">
<?php if(APPID == 0) { ?>
<div class="userbar">
<span class="split"></span>
<ul class="user-nav">
<li>
<script language="javascript" type="text/javascript" src="{YICMS::C('URL')}/index.php/Qqlogin/log"></script>
</li>
<li class="ie6button"><a class="search-button sprite" href="javascript:void(0);">搜索</a></li>
</ul>
</div>
<?php } ?>
<a href="/" class="logo_bg clearfix" title="{YICMS:$web.stitle}">{YICMS:$web.stitle}</a>
<script>
		function seach(){
			var seachname=$('.search').val();
			if(seachname!=null){
				top.location="/tag-"+seachname+'.html';
			}else{
				alert('请输入搜索词');
			}
		}
		$('.search-button').bind('click',function(){
			if($('.searchbar').css('height')=='0px'){$('.searchbar').css({'display':'block'});$('.searchbar').animate({'height':'68px'},500);}
			else{$('.searchbar').animate({'height':'0px'},500,function(){$('.searchbar').css({'display':'none'})});}
		});
</script>
<label type="button" class="btn btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
			
</label>
<div class="menu clearfix">
	<ul>
		<li class="menuout"><a href="/" <if condition="$_GET['_URL_'][1] eq ''">id="highlight"</if>>首页</a></li>
		
		<li class="menuout"><a href="/history" <if condition="$_GET['_URL_'][1] eq 'history'">id="highlight"</if>>穿越</a></li>
		<li class="menuout"><a href="/ticket?lightbox[iframe]=true&lightbox[width]=770&lightbox[height]=580" class="lightbox">审贴</a></li>
		<li class="menuout"><a href="/user/Publish.htm" <if condition="$_GET['_URL_'][1] eq 'user'">id="highlight"</if>>发帖</a></li>
	</ul>
</div>
<script>
	$('.btn-navbar').bind('click',function(){
		if($('.btn-navbar~.menu').css('height')=='0px'||$('.btn-navbar~.menu').css('display')=='none'){
		$('.btn-navbar~.menu').css({
			'height':$('.menu ul').height()+40,
			'display':'block'
		})}else{
			$('.btn-navbar~.menu').css({
			'height':'0',
			
			})
		}
	})
</script>

</div>
</div>
<if condition="C('opencws') eq 1">
	<script src="{YICMS:$style}static/js/nav.js"></script>
</if>